package compositeExpression_Factb_FactbExpr;

import visitor.Visitor;
import compositeExpression.Expr;
import compositeExpression.Expression;
import compositeExpression_Factb.FactbExpr;

public class RelopLt extends FactbExpr{

	
	 public RelopLt(Expr left, Expr right) {
	       
	        if (left == null || right == null) {

	            throw new NullPointerException();
	        }

	        this.left = left;
	        this.right = right;
	    }
	 
	 @Override
	    public void accept(Visitor v) {
	        v.visit(this);
	    } 
	 
	 @Override
	    public void add(Expression e) {
	        throw new UnsupportedOperationException("Not supported yet.");
	    }


	 
	 @Override
	    public String toString() {

	        StringBuilder sb = new StringBuilder();

	        sb.append(super.getleft()).append(" < ").append(super.getRight());
	        return sb.toString();
	    }
}
